#!/bin/sh
#
# Copyright (C) 2000-2023 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#

#
# Configure the dart files
#
cwd=`pwd`
. ${cwd}/config

mkdir -p ${cwd}/bin
out="${cwd}/tmp/sed_tmp"

# pull in latest Bacula version
#git pull

scripts/create_sed


sed -f ${out} ${cwd}/DartConfiguration.tcl.in >${cwd}/DartConfiguration.tcl
sed -f ${out} ${cwd}/DartTestfile.txt.in >${cwd}/DartTestfile.txt

sed -f ${out} ${cwd}/scripts/update-ctest.in >${cwd}/scripts/update-ctest
chmod +x ${cwd}/scripts/update-ctest
